-- GENERATED SPELL FOR [Gordok Mastiff] --


function spell0_13036(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13036', 15000, 1)
end

function spell1_13036(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13036', 8000, 1)
end

function Sorts_13036(pUnit, Event)
local choix_sorts_13036 = math.random(0, 1)
if choix_sorts_13036 == 0 then
pUnit:RegisterEvent('spell0_13036', 1, 1)
end
if choix_sorts_13036 == 1 then
pUnit:RegisterEvent('spell1_13036', 1, 1)
end
end

function mob13036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13036', math.random(1500, 3000), 1)
end

function mob13036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13036, 1, 'mob13036_Action')
RegisterUnitEvent(13036, 2, 'mob13036_Leave')
RegisterUnitEvent(13036, 3, 'mob13036_Kill')
RegisterUnitEvent(13036, 4, 'mob13036_Die')
